package others;

public enum BookTypeCode {

    DEFAULT("默认账本",0),
    PERSONAL("个人账本",1),
    FAMILY("家庭账本",2)

    ;

    private String name;
    private int code;

    BookTypeCode(String name, int code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
